#commentpaging{
    width: 50%;
    height: 41px;
    /* border: 1px solid red; */
    margin: 0px auto;
    margin-top: 100px;
    text-align: center;
}

ul.pagination {
    display: inline-block;
    padding: 0;
    margin: 0;
}

ul.pagination li {display: inline;}

ul.pagination li a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
    margin: 0 4px;
}

ul.pagination li a:hover:not(.active) {background-color: #ff4157;}